//
//  GreenHandData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/03
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "GreenHandData.h"
#import "GreenHandSecData.h"

@implementation GreenHandData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [GreenHandSecData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{

    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<GreenHandSecData *>  *secDataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            GreenHandSecData *greenHandSecData = [GreenHandSecData modelWithDic:dic];
            [secDataArray addObject:greenHandSecData];
        }
        _data = secDataArray;
     }
}
@end
